home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Plug-In Power Pack for Netscape Communicator
/
Plug-In Power Pack for Netscape Communicator.iso
/
plugins
/
dataviews
/
include
/
dvdsdll.h
< prev
next >
Wrap
C/C++ Source or Header
|
1997-05-08
|
3KB
|
82 lines
/////////////////////////////////////////////////////////////////////////////
//
// DvDsDll.h : DataViews Data Source DLL interface header file
//
/////////////////////////////////////////////////////////////////////////////
#ifndef DVDSDLL_H
#define DVDSDLL_H
#ifdef __cplusplus
extern "C" {
#include "Tfundecl.h"
}
#endif
#include "dvtypes.h"
#include "dvinterface.h"
/////////////////////////////////////////////////////////////////////////////
// DV_DSDLLCONTEXT
typedef enum DV_DSDLLCONTEXT {
// Context flags
DV_DSDLL_INITNEWVIEW = 0x1, // Initializing a new DV view
DV_DSDLL_EDITDSL = 0x2, // Editing data sources (read/write)
DV_DSDLL_VIEWDSL = 0x4, // Viewing (read only) data sources (Not used/future use)
DV_DSDLL_EDITDYNAMICS = 0x8, // Context is editing dynamics
DV_DSDLL_EDITGRAPH = 0x10, // Context is creating/editing a graph
DV_DSDLL_EDITINPUT = 0x20, // Context is creating/editing an input object
DV_DSDLL_EDITRULES = 0x40, // Context is creating/editing rules
DV_DSDLL_DEFAULTDATA = 0x80, // Caller requesting a default data connection
DV_DSDLL_SELECTDATA = 0x100, // Caller requires a data connection selection
DV_DSDLL_EXCHANGEDATA = 0x200, // Caller requires a selection & exchange
DV_DSDLL_RECONNECTDATA = 0x400, // For Cut/Paste like operations
// Query flags
DV_DSDLL_QUERYDLL = 0x1000, // Caller querying DLLÆs context & feature support
DV_DSDLL_GETNAMEBITS = 0x2000, // Caller requests variableÆs name & tag fields
// Feature flags
DV_DSDLL_USESDSVARS = 0x10000, // DLL supports/uses data source variables
DV_DSDLL_USESCUSTOMTAGS = 0x20000 // DLL uses/imbeds custom tag names w/variable
};
/////////////////////////////////////////////////////////////////////////////
// DV_DSDLLCONTEXT
typedef struct tagDSDLLDATA {
VIEW m_Pview; // Primary view
VIEW m_Sview; // Secondary view
VARDESC m_Pvdp; // Primary variable descriptor
VARDESC m_Svdp; // Primary variable descriptor
DSVAR m_DsVar; // A data source variable
char* m_pszVarname; // Variable descriptor name
char* m_pszVartags; // Variable descriptor tags (optional)
OBJECT m_Ob; // Selected object(s)
OBJECT m_DynControl; // Dynamic control object
int m_VarType; // Variable type, i.e. V_T_TYPE
int m_DynType; // Specific dynamic flag (i.e. V_DYN_ROTATE)
BOOL m_Dirty; // If TRUE, user has made changes
UINT m_Context; // Context flags
} DV_DSDLLDATA;
/////////////////////////////////////////////////////////////////////////////
// class CDvDsDll
class CDvDsDll : public DVIUnknown
{
public :
virtual int HandleRequest(DV_DSDLLDATA* pData, CWnd* pParent) = 0;
virtual void GetIdInfo(CString& mfgName, CString& objName, CString& versionStr) = 0;
};
#endif